package com.jeesite.modules.wzt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 任职属性Entity
 * @author xhc
 * @version 2023-03-30
 */
@Table(name="wzt_asg", alias="a", label="任职属性信息", columns={
		@Column(name="user_id", attrName="userId", label="用户", isPK=true),
		@Column(name="organization_id", attrName="organizationId", label="任职部门", isPK=true),
		@Column(name="unit_id", attrName="unitId", label="任职单位"),
		@Column(name="org_path", attrName="orgPath", label="部门全路径"),
		@Column(name="relation", attrName="relation", label="任职类型"),
		@Column(name="visibility_code", attrName="visibilityCode", label="visibility_code"),
		@Column(name="title", attrName="title", label="任职职务", queryType=QueryType.LIKE),
		@Column(name="sequence", attrName="sequence", label="序号"),
		@Column(name="rank_code", attrName="rankCode", label="职务层次"),
		@Column(name="phone", attrName="phone", label="办公电话"),
	}
)
public class WztAsg extends DataEntity<WztAsg> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 用户
	 */
	private String userId;
	 /**
	 * 任职部门
	 */
	private String organizationId;
	 /**
	 * 任职单位
	 */
	private String unitId;
	 /**
	 * 部门全路径
	 */
	private String orgPath;
	 /**
	 * 任职类型
	 */
	private String relation;
	 /**
	 * visibility_code
	 */
	private String visibilityCode;
	 /**
	 * 任职职务
	 */
	private String title;
	 /**
	 * 序号
	 */
	private String sequence;
	 /**
	 * 职务层次
	 */
	private String rankCode;
	private String phone;
	private String isDelete;

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public WztAsg() {
		this(null);
	}

	public WztAsg(String id){
		super(id);
	}
	
	@Size(min=0, max=100, message="用户长度不能超过 100 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Size(min=0, max=100, message="任职部门长度不能超过 100 个字符")
	public String getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}
	
	@Size(min=0, max=100, message="任职单位长度不能超过 100 个字符")
	public String getUnitId() {
		return unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}
	
	@Size(min=0, max=500, message="部门全路径长度不能超过 500 个字符")
	public String getOrgPath() {
		return orgPath;
	}

	public void setOrgPath(String orgPath) {
		this.orgPath = orgPath;
	}
	
	@Size(min=0, max=100, message="任职类型长度不能超过 100 个字符")
	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}
	
	@Size(min=0, max=100, message="visibility_code长度不能超过 100 个字符")
	public String getVisibilityCode() {
		return visibilityCode;
	}

	public void setVisibilityCode(String visibilityCode) {
		this.visibilityCode = visibilityCode;
	}
	
	@Size(min=0, max=300, message="任职职务长度不能超过 300 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Size(min=0, max=100, message="序号长度不能超过 100 个字符")
	public String getSequence() {
		return sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}
	
	@Size(min=0, max=100, message="职务层次长度不能超过 100 个字符")
	public String getRankCode() {
		return rankCode;
	}

	public void setRankCode(String rankCode) {
		this.rankCode = rankCode;
	}
	
}